<template>
    <div class="home-list">
      <img :src="list.images.small" alt="" class="list-img">
      <p>{{list.title}}</p>
      <start  :start="list.rating.average"></start>
    </div>
</template>
<script>
import Start from "./start";
export default {
  name: "MovieList",
  props: {
    list: {
      type: Object
    }
  },
  components: {
    Start
  },
  computed: {
    start() {
      return this.message
        .split("")
        .reverse()
        .join("");
    }
  }
};
</script>
<style lang="scss" scoped>
.home-list {
  width: 30vw;
  height: 57vw;
  border: 1px solid#ccc;
  margin-bottom: 30px ;
  .list-img {
    width: 30vw;
    height: 40vw;
  }
  p {
    padding-left: 10px;
    overflow: hidden;
    line-height: 10vw;
    width: 28vw;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
</style>
